package me.zk.practice1.hw;

import java.util.Scanner;
import java.util.Stack;

public class HWBJ38 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        String[] strs = scanner.nextLine().split(" ");

        int count = 0;
        for (int i = 0; i < strs.length; i++) {
            String s = strs[i];
            if (s.length() < 4) {
                continue;
            }

            boolean isAllChar = true;
            for (int j = 0; j < s.length(); j++) {
                if (!Character.isLetter(s.charAt(j))) {
                    isAllChar = false;
                    break;
                }
            }
            if (isAllChar) {
                s =  new StringBuffer(s).reverse().toString();

            }
            //判断是否是相对音符
            for (int j = 0; j <= s.length()-4; j++) {
                if (isXdkyj(s.substring(j,j+4))) {
                    count++;
                }
            }


        }
        System.out.println(count);
    }

    public static boolean isXdkyj(String s) {
        if (s.length()< 4) {
            return false;
        }
        String yunyin = "aeiou";
        String fuxin = "bcdfghgklmnpqrstvwxyz";

        String a = String.valueOf(s.charAt(0));
        String b =String.valueOf( s.charAt(1));
        String c = String.valueOf(s.charAt(2));
        String d = String.valueOf(s.charAt(3));

        return fuxin.contains(a) && yunyin.contains(b) && fuxin.contains(c) && !c.equals("r") && d.equals("e");


    }


}
